package top.mable.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import top.mable.utils.dto.GpPayFeeInfoDTO;
import top.mable.utils.dto.Result;

/**
 * @author taffywen
 * @date 2022/3/22 22:36
 */

@Service
public class ProductService {

    @Autowired
    private LoadBalancerClient loadBalancerClient;

    public void getService(){
        ServiceInstance choose = loadBalancerClient.choose("microservice_product");
    }

}
